<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 *
 */
?>
<html>
    <head>
        <title>Title</title>
    </head>
    <body>
        <?php
        $Math = 80;
        $html = 85;
        $javascript = 85;
        $Ave = ($Math+$html+$javascript)/3;
        
        define("PI",3.14);
        define("DRPAIH", "c:/wamp/www/");
        echo DRPAIH. "bbs/index2.php";
        const pi01 = 3.1415;
        echo pi01;
        ?>
        <table>
            <tr>
                <th>课程</th>
                <th>分数</th>
            </tr>
            <tr>
                <td>Math</td>
                <td><?php   echo $Math;?></td>
            </tr>
            <tr>
                <td>Html</td>
                <td><?php   echo $html;?></td>
            </tr>
            <tr>
                <td>Javascript</td>
                <td><?php   echo $javascript;?></td>
            </tr>
            <tr>
                <td>平均分</td>
                <td><?php   echo $Ave;?></td>
            </tr>
        </table>
    </body>
</html>
